﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A9B RID: 2715
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LockRelicScRsp : IMessage<LockRelicScRsp>, IMessage, IEquatable<LockRelicScRsp>, IDeepCloneable<LockRelicScRsp>, IBufferMessage
	{
		// Token: 0x1700223B RID: 8763
		// (get) Token: 0x06007963 RID: 31075 RVA: 0x00143E78 File Offset: 0x00142078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LockRelicScRsp> Parser
		{
			get
			{
				return LockRelicScRsp._parser;
			}
		}

		// Token: 0x1700223C RID: 8764
		// (get) Token: 0x06007964 RID: 31076 RVA: 0x00143E7F File Offset: 0x0014207F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LockRelicScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700223D RID: 8765
		// (get) Token: 0x06007965 RID: 31077 RVA: 0x00143E91 File Offset: 0x00142091
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LockRelicScRsp.Descriptor;
			}
		}

		// Token: 0x06007966 RID: 31078 RVA: 0x00143E98 File Offset: 0x00142098
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockRelicScRsp()
		{
		}

		// Token: 0x06007967 RID: 31079 RVA: 0x00143EA0 File Offset: 0x001420A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockRelicScRsp(LockRelicScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007968 RID: 31080 RVA: 0x00143EC5 File Offset: 0x001420C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LockRelicScRsp Clone()
		{
			return new LockRelicScRsp(this);
		}

		// Token: 0x1700223E RID: 8766
		// (get) Token: 0x06007969 RID: 31081 RVA: 0x00143ECD File Offset: 0x001420CD
		// (set) Token: 0x0600796A RID: 31082 RVA: 0x00143ED5 File Offset: 0x001420D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600796B RID: 31083 RVA: 0x00143EDE File Offset: 0x001420DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LockRelicScRsp);
		}

		// Token: 0x0600796C RID: 31084 RVA: 0x00143EEC File Offset: 0x001420EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LockRelicScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600796D RID: 31085 RVA: 0x00143F1C File Offset: 0x0014211C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600796E RID: 31086 RVA: 0x00143F5B File Offset: 0x0014215B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600796F RID: 31087 RVA: 0x00143F63 File Offset: 0x00142163
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007970 RID: 31088 RVA: 0x00143F6C File Offset: 0x0014216C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007971 RID: 31089 RVA: 0x00143FA0 File Offset: 0x001421A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007972 RID: 31090 RVA: 0x00143FDE File Offset: 0x001421DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LockRelicScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007973 RID: 31091 RVA: 0x0014400F File Offset: 0x0014220F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007974 RID: 31092 RVA: 0x00144018 File Offset: 0x00142218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002E6F RID: 11887
		private static readonly MessageParser<LockRelicScRsp> _parser = new MessageParser<LockRelicScRsp>(() => new LockRelicScRsp());

		// Token: 0x04002E70 RID: 11888
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E71 RID: 11889
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04002E72 RID: 11890
		private uint retcode_;
	}
}
